package com.atguigu.gmall.activity.client;

import com.atguigu.gmall.model.activity.SeckillGoods;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

import java.util.List;

/**
 * @author 李旭
 * @date 2021/11/1 11:13
 * @Description:
 */
@FeignClient(name = "service-activity")
public interface SeckillGoodsFeignClient {


    //获取秒杀频道首页数据集合
    @GetMapping("/api/activity/seckill/list")
    public List<SeckillGoods> list();

    //秒杀详情页面
    @GetMapping("/api/activity/seckill/item/{skuId}")
    SeckillGoods item(@PathVariable String skuId);
}
